var express = require('./config/express');
var mongodb  = require('./config/mongoose');

var db = mongodb();  //mongo这个要放在app的前边，不然会找不到：Schema hasn't been registered for model "News".

var app = express(); //直接执行express.js中的导出函数获取app对象

module.exports = app; //导出app，一边在bin/www入口文件中进行使用
